import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import commonjs from 'vite-plugin-commonjs';
import vitePluginString from 'vite-plugin-string'
import { resolve } from "path";

export default defineConfig({
  base: "./",
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
    },
  },
  server: {
    host: "0.0.0.0",
    open: false,
  },
  plugins: [
    vue(),
    commonjs(),
    vitePluginString()
  ],
  assetsInclude: [".glsl", ".glb", ".bin"],
});
